
import { request, request2 } from './request'

export function loginAxios (config) {
  return request2({
    url: '/login.php',
    params: config
  })
}

export function tqData () {
  return request({
    url: '/tianqi3day.php'

  })
}

export function userAllFun (config) {
  return request({
    url: '/yxList.php',
    params: config

  })
}

export function delUserRow (id) {
  return request({
    url: '/yxDelRow.php',
    params: {
      id: id
    }
  })
}

export function getKefuInfo () {
  return request({
    url: '/yxLoad.php'
  })
}

export function addUserRow (config) {
  return request({
    url: '/yxAdd.php',
    params: config

  })
}
export function validateFun (myObj) {
  return request({
    url: '/yxValidate.php',
    params: myObj

  })
}

export function getRowUser (id) {
  return request({
    url: '/yxRow.php',
    params: { id: id }

  })
}
export function updateRowUser (config) {
  return request({
    url: '/yxUpdata.php',
    params: config

  })
}
export function paiMingNet (config) {
  return request({
    url: '/dataPaiming.php',
    params: {
      pullTime: config
    }

  })
}
export function fenbuNetwork (config) {
  return request({
    url: '/dataFenBu.php',
    params: {
      pullTime: config
    }

  })
}
export function kefuDataNetwork (config) {
  return request({
    url: '/dataKefu.php',
    params: {
      pullTime: config
    }

  })
}
